﻿using IAD13.fromTDDtoBDD.Exceptions;
using Machine.Specifications;
using NUnit.Framework;

namespace IAD13.fromTDDtoBDD.MSpec.given_an_account.with_any_balance
{
    public class when_I_try_deposit_with_wrong_currency  : with_any_balance
    {
        It should_throw_exception_Currency_is_wrong = () =>
            Assert.Catch<CurrencyIsWrongException>(() =>
                sut.Deposit(Amount.OfDollar(100)));
       
        It should_not_change_balance = () =>
          sut.Balance().ShouldEqual(Amount.OfEuro(10));
    }
}